/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package scheduleManager;

import java.awt.Component;
import javax.swing.JTable;
import lib.JButtonTable.ButtonRenderer;

/**
 *
 * @author yoshi
 */
public class AssignHeadButtonRenderer extends ButtonRenderer{

    public AssignHeadButtonRenderer() {
        super();
    }
    
    @Override
    public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column) {
        this.setText(((AssignHeadButtonModel) value).getText());
        this.disabledButton.setText(((AssignHeadButtonModel) value).getText());
        return super.getTableCellRendererComponent(table, value, isSelected, hasFocus, row, column);
    }
    
}
